import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
import {createContext,useReducer} from 'react';


export const Context = createContext();


const reducer = function(state,action) {
  switch(action.type) {
    default:
      return state;
  }
}

function App() {
  const [count, setCount] = useState(0)
  const [state,dispatch] = useReducer(reducer,{name:'daxia'});

  return (
    <Context.Provider value={{state,dispatch}} >
    <div className="App">

    </div>
    </Context.Provider>
  )
}

export default App
